package com.example.om_export.system.config;

import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wb-ycl473317
 */
@Configuration
public class HttpClientConfig {

    /**
     * 目前只有一个地方使用，后期位置多可以改成连接池方式
     * @return
     */
    @Bean
    public CloseableHttpClient httpClient(){
        return HttpClients.createDefault();
    }
}
